package cn.iocoder.mall.shop.api;

import cn.iocoder.common.framework.vo.CommonResult;
import cn.iocoder.mall.shop.api.pojo.Shop;
import cn.iocoder.mall.shop.api.pojo.ShopDTO;
import cn.iocoder.mall.shop.api.pojo.ShopDetailDTO;

import java.util.List;

/***
 *@author yinxucun
 *@date 2019-11-20 19:16 
 */

public interface ShopService {
    CommonResult deleteAllRelationShip(String clerkId);

    CommonResult save(ShopDTO temp);

    CommonResult addSellerShopRelationShip(String id, String id1);

    CommonResult<List<ShopDTO>> getListOfStores(String userId);

    CommonResult<List<ShopDTO>> queryClerkBelongShops(String sellerId);

    CommonResult<List<ShopDTO>> getShopLisByClerkIds(List<String> clerkIds);

    /**
     * 通过店铺id获取店铺的信息
     * @param shopIds
     * @return
     */
    CommonResult<List<ShopDTO>> getShopInfoById(List<String> shopIds);


    CommonResult<ShopDTO> getOneShopInfoByShopId(String shopId);

    List<ShopDetailDTO> getShopLisBySellerId(String userId);

    CommonResult addShopIncome(String shopId,Integer income);
}
